package com.parenting.request;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="AddCommodityRequest对象", description="添加商品")
public class AddCommodityRequest implements Serializable {

    @ApiModelProperty(value = "商品名称")
    @NotBlank(message = "商品名称不能为空")
    private String commodityName;

//    @ApiModelProperty(value = "货号")
//    private String articleNumber;
    @ApiModelProperty(value = "是否上架（1上架，2下架）")
    private Integer shelves;

    @ApiModelProperty(value = "关键词（最多五个关键词）")
    private String keywords;

    @ApiModelProperty(value = "商品描述")
    private String description;

    @ApiModelProperty(value = "商品价格(价格为整数 1代表一分钱)")
    private Integer price;

    @ApiModelProperty(value = "商品库存")
    private Integer stock;

    @ApiModelProperty(value = "库存量预警值")
    private String warning;

    @ApiModelProperty(value = "图片URL（多个地址逗号分隔）")
    @NotBlank(message = "商品名称不能为空")
    private String imagesUrl;

    @ApiModelProperty(value = "视频URL")
    private String videoUrl;

    @ApiModelProperty(value = "是否删除（1否，2是 默认 1）")
    private Integer commodityRemove;


    @ApiModelProperty(value = "商品详情")
    @NotBlank(message = "商品名称不能为空")
    private String details;
}
